package org.mountainpunch.ds.sparsematrix;

import java.util.Iterator;

/**
 *
 * @author siddharth
 */
public interface SparseMatrixIterator<T> extends Iterator<T> {

  /**
   * Gets the row location of the current element in the matrix.
   * @return the row location.
   */
  public int getRow() ;

  /**
   * Gets the column location of the current element in the matrix.
   * @return the column location.
   */
  public int getCol() ;

  /**
   * Gets the current element in the sparse matrix.
   * @return the current element in the sparse matrix.
   */
  public T current() ;

  /**
   * Gets the last element in the sparse matrix.
   * @return the last element in the sparse matrix.
   */
  public T lastElement() ;
}
